import request from '../utils/request.js'

export const login = (code) => {
	return request(`/wx/user/wxd3d8fc3f6eef7a0c/login`, {
		params: { code }
	})
}

export const updatePhoneNum = (code) => {
	return request(`/api/miniWxApi/updatePhoneNum`, {
		method: 'POST',
		data: {
			code
		}
	})
}

export const authentication = (data) => {
	return request(`/api/miniWxApi/authentication`, {
		method: 'POST',
		data
	})
}

export const updateUserInfo = (data) => {
	return request(`/api/miniWxApi/updateUserInfo`, {
		method: 'POST',
		data
	})
}